﻿namespace NServiceBus.Management.EndpointExplorer
{
    public class Endpoint
    {
        public string Id { get; set; }
       
        public string Name { get; set; }
        public string Host { get; set; }
        public string InputAdress { get; set; }

        public override string ToString()
        {
            return InputAdress;
            //return string.Format("{0}@{1}", Name, Host);
        }

        public override bool Equals(object obj)
        {
            var x = obj as Endpoint;

            if (x == null)
                return false;
            return x.Id == Id;

        }
    }
}
